const { spawn } = require("child_process");

//let childProcess = spawn("命令",["执行文件"])
let childProcess = spawn("node", ["02node-child.js", "test"]);

childProcess.stdout.on("data", (chunk) => {
    console.log(chunk.toString());
})